const Student = require("./student.js");
class Class{
    constructor(number){
        this.number=number
    }
    leader;
    appendMember(student){
        student.klass=this
    }
    assignLeader(student){
        if(student.klass==this) 
        this.leader=student
        else
        console.log("It is not one of us.");
    }
    getDisplayName(){
        return `Class ${this.number}`
    }
}
module.exports = Class


